package com.atguigu.aiproject.service;

import com.atguigu.aiproject.entity.User;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service
public interface AdminService {

    void executeSql(String sql);
    // 修改返回类型为 List<Map<String, Object>> 以处理多个结果
    List<Map<String, Object>> selectSql(String sql);

    boolean isAdmin();

    Page<User> getUsers(int pageNum, int pageSize);

    List<User> getUsersByIds(List<Integer> userIds);
}
